def build_url(tail, variation, base_url):
    """
    Takes the passed parameters and builds a URL to query the OMA database
    Args:
        tail(str): The path and REST parameters that returns the desired info
        variation(list): A list of strings that contain the parameters unique
            to the query
        base_url(str): The website that is being accessed, without any slashes
    """
    url = base_url + tail
    url = url.format(*variation)
    return url