def set_remove_subs(ssli):
 part = []
 for s in sorted(list(set(ssli)), key=(lambda x: len(set(x))))[::(-1)]:
  if (not any((set(s).issubset(set(t)) for t in part))):
   part.append(s)
 return part

def set_remove_subs ( ssli ) : part = [ ] for s in sorted ( list ( set ( ssli ) ) , key = ( lambda x : len ( set ( x ) ) ) ) [ : : ( - 1 ) ] : if ( not any ( ( set ( s ) . issubset ( set ( t ) ) for t in part ) ) ) : part . append ( s ) return part
remove sets that are subsets of another set from a list of tuples parameters ssli : list of tuples each tuple is considered as a set returns part : list of tuples new list with subset tuples removed .