remove duplicates from a list of sets 'l',[set(item) for item in set(frozenset(item) for item in L)]