def dlls_in_subdirs(directory):
 filelist = []
 for (root, dirs, files) in os.walk(directory):
  filelist.extend(dlls_in_dir(root))
 return filelist

def dlls_in_subdirs ( directory ) : filelist = [ ] for ( root , dirs , files ) in os . walk ( directory ) : filelist . extend ( dlls_in_dir ( root ) ) return filelist
returns a list * .