keepalive_handler = HTTPHandler()
opener = urllib.request.build_opener(keepalive_handler)
urllib.request.install_opener(opener)
fo = urllib.request.urlopen('http://www.python.org')
Python urllib2 с поддержкой