Extract all keys from a list of dictionaries,set([i for s in [list(d.keys()) for d in LoD] for i in s])