def extract_keys(list_of_dicts, *keys):
    """Turn a lists of dicts into a tuple of lists, with one entry for every given key."""
    res = []
    for k in keys:
        res.append([d[k] for d in list_of_dicts])
    return tuple(res)