Python 3 compatibility when PyOpenSSL is installed