Thanks. I love developer comments -- we've all written things like "this is hacky and ugly" in our code :)
# Note: influxdb-python first replaces each backslash in the username with two backslashes
# and because in influx queries, we have to escape each backslash, overall each backslash
# must be replaced by 4 backslashes. Yes, this is hacky and ugly.