JPM: fixed timing issue in failing integration test
HM/JPM: fixed httpsconnection for python < 2.6.7 with self._tunnel_host None