slight improvements to py script
slight improvements to py script

influxdata/docs.influxdata.com,influxdb/docs.influxdata.com,influxdb/docs.influxdata.com,influxdata/docs.influxdata.com,influxdata/docs.influxdata.com,influxdata/docs.influxdata.com,influxdb/docs.influxdata.com,influxdata/docs.influxdata.com