def urljoin(*pieces):
    """Join a URL

    Joins the pieces together to an URL.
    Cannot be replaced by urllib.parse.urljoin,
    because that doesn't join parts of a path and
    doesn't allow for multiple pieces to be joined.

    Arguments:
        *pieces {str} -- pieces of URL
    """
    return '/'.join(s.strip('/') for s in pieces)