Add support for Google App Engine dev server

Google App Engine blocks access to many C modules including the
`socket` module. It provides its own implementation but this causes a
`TypeError` when used with the `ssl` module.