def METHOD_NAME(url):
    if url:
        if not url.lower().startswith('http'):
            url = 'http://' + url
        p = urlparse(url)
        url = "%s://%s%s" % (p.scheme, p.hostname.lower(), p.path)
        return url
    return None