Fixed Python flake8 offenses
diff --git a/lib/py/src/transport/sslcompat.py b/lib/py/src/transport/sslcompat.py
index 54235ec..f4425d0 100644
--- a/lib/py/src/transport/sslcompat.py
+++ b/lib/py/src/transport/sslcompat.py
@@ -97,7 +97,8 @@
         # 3.7. OpenSSL performs hostname matching since Python 3.7, Python no
         # longer uses the ssl.match_hostname() function.""
         if sys.version_info[0] > 3 or (sys.version_info[0] == 3 and sys.version_info[1] >= 12):
-            match = lambda cert, hostname: True
+            def match(cert, hostname):
+                return True
         else:
             logger.warning('using legacy validation callback')
             match = legacy_validate_callback