code: def lookup_matching(self, urls):
          
          hosts = (urlparse(u).hostname for u in urls)
          for val in hosts:
              item = self.lookup(val)
              if item is not None:
                  yield item
docs: Get matching hosts for the given URLs.
  
          :param urls: an iterable containing URLs
          :returns: instances of AddressListItem representing listed
          hosts matching the ones used by the given URLs
          :raises InvalidURLError: if there are any invalid URLs in
          the sequence