Fixing ImportError when no ssl module

This allows import in Google App Engine, where no ssl module is
available.