def default_handler(parsed_url):
    pass

def youtube_handler(parsed_url):
    pass

def hulu_handler(parsed_url):
    pass
handlers = {'www.youtube.com': youtube_handler, 'hulu.com': hulu_handler}
handler = handlers.get(urlParsed.netloc, default_handler)
Pythonic alternatives to if/else statements