So, it looks like what we need to do here is pass ssl_version=ssl.PROTOCOL_TLSv1_2 [1] to wrap_socket [2] to fix this.
[1] https://docs.python.org/2/library/ssl.html#ssl.PROTOCOL_TLSv1_2 [2] https://docs.python.org/2/library/ssl.html#ssl.wrap_socket
So, it looks like what we need to do here is pass ssl_version= ssl.PROTOCOL_ TLSv1_2 [1] to wrap_socket [2] to fix this.
[1] https:/ /docs.python. org/2/library/ ssl.html# ssl.PROTOCOL_ TLSv1_2 /docs.python. org/2/library/ ssl.html# ssl.wrap_ socket
[2] https:/