Python script to query an InfluxDB server and return a CSV resultset