Edit the crypto.py file mentioned in the stacktrace and remove the offending line by commenting it out with a #
Then upgrade latest version of PyOpenSSL.
pip install pip --upgrade
pip install pyopenssl --upgrade
Now you can re-add the commented line again and it should be working