Added support for ssl connections.
pep8