Deal with old pyOpenSSL versions gracefully