Always access Thrift client instance through connection
A few minor PEP8 cleanups