Add support for secure connection (TLS v1.2)

Note: switched project to python 3.4, Python 2 only supports TLC 1.0,
which is not supported by this service