This function helps to make full url path.

def make_url(domain, location):
    """ This function helps to make full url path."""

    url = urlparse(location)

    if url.scheme == '' and url.netloc == '':
        return domain + url.path
    elif url.scheme == '':
        return 'http://' + url.netloc + url.path
    else:
        return url.geturl()