def new_wrap_socket(*args, **kwargs): kwargs['ssl_version'] = ssl.PROTOCOL_SSLv3 return orig_wrap_socket(*args, **kwargs)