def is_simple(sum):
 for t in sum.types:
  if t.fields:
   return False
 return True

def is_simple ( sum ) : for t in sum . types : if t . fields : return False return True
return true if a sum is a simple .