def __init__(self, ignore_sites=set()): self.url_map = Map(strict_slashes=False, host_matching=True, redirect_defaults=False) self.ignore_sites = ignore_sites