def keysUnion(data):
    """
    Data is a list of dictionaries. Return the union of all keys.
    """
    items = []
    allKeys = map(lambda d: d.keys(), data)
    for k in allKeys:
        items += k
    return set(items)