Changed ssl_version to ssl.PROTOCOL_TLSv1