Fixed Python flake8 offenses
diff --git a/test/py/TestClient.py b/test/py/TestClient.py
index 9971e42..f608e4e 100755
--- a/test/py/TestClient.py
+++ b/test/py/TestClient.py
@@ -244,7 +244,7 @@
         try:
             self.client.testException('TException')
             self.fail("should have gotten exception")
-        except TException as x:
+        except TException:
             pass
 
         # Should not throw
@@ -320,6 +320,7 @@
     Wraps any protocol with sequence ID checking: looks for outbound
     uniqueness as well as request/response alignment.
     """
+
     def __init__(self, protocol):
         # TProtocolDecorator.__new__ does all the heavy lifting
         pass
@@ -335,7 +336,6 @@
             name, type, seqid)
 
     def readMessageBegin(self):
-        global LAST_SEQID
         (name, type, seqid) =\
             super(TPedanticSequenceIdProtocolWrapper, self).readMessageBegin()
         if LAST_SEQID != seqid: