def parse_mf_results(mf):
 py_files = []
 extensions = []
 for item in mf.flatten():
  if (item.identifier == '__main__'):
   continue
  src = item.filename
  if (src and (src != '-')):
   if isinstance(item, Script):
    py_files.append(item)
   elif isinstance(item, Extension):
    extensions.append(item)
   else:
    py_files.append(item)
 py_files.sort(key=(lambda v: v.filename))
 extensions.sort(key=(lambda v: v.filename))
 return (py_files, extensions)

def parse_mf_results ( mf ) : py_files = [ ] extensions = [ ] for item in mf . flatten ( ) : if ( item . identifier == '__main__' ) : continue src = item . filename if ( src and ( src != '-' ) ) : if isinstance ( item , Script ) : py_files . append ( item ) elif isinstance ( item , Extension ) : extensions . append ( item ) else : py_files . append ( item ) py_files . sort ( key = ( lambda v : v . filename ) ) extensions . sort ( key = ( lambda v : v . filename ) ) return ( py_files , extensions )
return two lists: the first one contains the python files in the graph .