Updating python to use TLS1.2 is now required (this is the problem the guys in devops encountered) and here is how to do it.
If you are using virtualenv you’ll need to deactivate it:
deactivate
then use brew to install the latest version of python and openssl:
brew install python@2