fix some dark http connection voodoo for urllib2