Use internal ssl module instead of pyopenssl or python-gnutls
This results in shorter code and is available on Windows as well.