code: def has_in_url_path(url, subs):
      
      scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
      return any([sub in path for sub in subs])
docs: Test if any of `subs` strings is present in the `url` path.