Python 3 and HTTPS support