I now print lines one at a time rather than accumulating them. Added support for float values from InfluxDB. Note that the json.loads() is slow for a large query.