def get_api_key(filepath):
    """Read a local file with your API key."""
    api = []
    with open(filepath) as f:
        for line in f:
            api.append(line.strip())
    assert len(api) == 1, "API key should be only one line long."
    return api[0]