class HTTPHandler(AbstractHTTPHandler):

    def http_open(self, req):
        return self.do_open(httplib.HTTPConnection, req)
http_request = AbstractHTTPHandler.do_request_
How to set TCP_NODELAY flag when loading URL with urllib2?