'Opens HTTPS request
@param req: HTTP request
@return: HTTP Response object'

def https_open(self, req):

    customHTTPSContextConnection = type('CustomHTTPSContextConnection', (HTTPSConnection, object), {'ssl_context': self.ssl_context})
    return self.do_open(customHTTPSContextConnection, req)
