def is_url(url):
    scheme = urllib.parse.urlparse(url).scheme
    return (scheme in ('http', 'https'))
def is_url(url):
    scheme = urllib.parse.urlparse(url).scheme
    return (scheme in ('http', 'https'))