def __init__(self): HTTPRedirectHandler.__init__(self) self.redirect_hdrs = [] self.counter = collections.Counter()