Fixed Python flake8 offenses
diff --git a/lib/py/src/transport/TSSLSocket.py b/lib/py/src/transport/TSSLSocket.py
index dc6c1fb..896d69c 100644
--- a/lib/py/src/transport/TSSLSocket.py
+++ b/lib/py/src/transport/TSSLSocket.py
@@ -28,7 +28,10 @@
 from thrift.transport import TSocket
 from thrift.transport.TTransport import TTransportException
 
-_match_hostname = lambda cert, hostname: True
+
+def _match_hostname(cert, hostname):
+    return True
+
 
 logger = logging.getLogger(__name__)
 warnings.filterwarnings(
@@ -356,7 +359,7 @@
             # Preserve existing behaviors for default values
             if 'cert_reqs' not in kwargs:
                 kwargs['cert_reqs'] = ssl.CERT_NONE
-            if'certfile' not in kwargs:
+            if 'certfile' not in kwargs:
                 kwargs['certfile'] = 'cert.pem'
 
         unix_socket = kwargs.pop('unix_socket', None)