def set2rel(s):
 new = set()
 for elem in s:
  if isinstance(elem, string_types):
   new.add((elem,))
  elif isinstance(elem, int):
   new.add(str(elem))
  else:
   new.add(elem)
 return new

def set2rel ( s ) : new = set ( ) for elem in s : if isinstance ( elem , string_types ) : new . add ( ( elem , ) ) elif isinstance ( elem , int ) : new . add ( str ( elem ) ) else : new . add ( elem ) return new
convert a set containing individuals into a set of unary tuples .