def flatten(class_dict):
 for (cls, fields_list) in class_dict.items():
  for fields in fields_list:
   (yield (cls, fields))

def flatten ( class_dict ) : for ( cls , fields_list ) in class_dict . items ( ) : for fields in fields_list : ( yield ( cls , fields ) )
flatten -> list returns a single .