Creates urls from base path and additional parts.

def join_path(base, *parts: str):
    """Creates urls from base path and additional parts."""
    _parts = "/".join((_part.strip("/") for _part in parts))
    # _parts = '/'.join(parts)
    if base.endswith("/"):
        url = base + _parts
    else:
        url = base + "/" + _parts
    return url