I had the exact same problem and finally figured out what I was doing wrong. The requests module references the urllib3 module which references the ssl module. I had a file in my project called ssl.py and so the import ssl directive was picking up my file instead of the module; hence, the missing methods error.