Support Google AppEngine, fix import error

httplib._IMPLEMENTATION is "gae" on GAE