THRIFT-3601 Better conformance to PEP8 for generated code

This closes #837
diff --git a/test/py/TestSocket.py b/test/py/TestSocket.py
index 9b578cc..a3c5ff0 100755
--- a/test/py/TestSocket.py
+++ b/test/py/TestSocket.py
@@ -62,7 +62,7 @@
             socket.open()
             lsock = self.listen_sock.accept()
             while True:
-                socket.write("hi" * 100)
+                lsock.write("hi" * 100)
 
         except:
             self.assert_(time.time() - starttime < 5.0)