Your comments

I ran into the same problem yesterday and I found the real fix (without a risk of insecure connection) through upgrading gevent package with the next command:
pip install gevent --upgrade
In case of any troubles with upgrading, try to install its dependence:
aptitude install python-dev