pep8 stuff and raise SSL, timeout error

* add cacerts to ssl.wrapper call for GAE compatibility