Fixed Python flake8 offenses
diff --git a/lib/py/test/test_socket.py b/lib/py/test/test_socket.py
index 5e25f1a..397c9bd 100644
--- a/lib/py/test/test_socket.py
+++ b/lib/py/test/test_socket.py
@@ -32,7 +32,7 @@
 
 class TSocketTest(unittest.TestCase):
     def test_failed_connection_raises_exception(self):
-        sock = TSocket(host="localhost", port=60606) # unused port
+        sock = TSocket(host="localhost", port=60606)  # unused port
         with self.assertRaises(TTransportException) as ctx:
             sock.open()
         exc = ctx.exception
@@ -55,7 +55,7 @@
         exc = ctx.exception
         self.assertEqual(exc.message, "read timeout")
 
-        acc.client.close() # this also blocks until the other thread is done
+        acc.client.close()  # this also blocks until the other thread is done
         acc.close()
         sock.close()