def _group_changes(cur, wanted, remove=False):
 old = set(cur)
 new = set(wanted)
 if ((remove and (old != new)) or ((not remove) and (not new.issubset(old)))):
  return True
 return False

def _group_changes ( cur , wanted , remove = False ) : old = set ( cur ) new = set ( wanted ) if ( ( remove and ( old != new ) ) or ( ( not remove ) and ( not new . issubset ( old ) ) ) ) : return True return False
determine if the groups need to be changed .