def read_api_key(location):
    """
    Reads an api key from a file in the specifies location.

    Parameters
    ----------
    location: str
        Location of the api key file.

    Returns
    -------
    str:
        The resulting api key
    """
    with open(location, "r") as f:
        key = f.read().strip()
    return key