def limit_domains(url, limit_dict):
 for (domain, limiter) in limit_dict.items():
  if (domain in url):
   limiter()
   break

def limit_domains ( url , limit_dict ) : for ( domain , limiter ) in limit_dict . items ( ) : if ( domain in url ) : limiter ( ) break
if this url matches a domain in limit_dict .