def is_same_base_url(url1, url2):
    url1 = urlsplit(url1)
    url2 = urlsplit(url2)
    return (url1.scheme==url2.scheme and
            url1.hostname==url2.hostname)
Compares two urls to see if they are the same excluding up to the base path
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/is_same_base_url