Hostnames are case insensitive and passing a URL through urlparse() will always give you a lowercase domain name.