def walk_excl(path, **kwargs):
 for (dirpath, dirnames, filenames) in os.walk(path, **kwargs):
  dirnames[:] = [dn for dn in dirnames if (not is_excluded_filename(dn))]
  (yield (dirpath, dirnames, filenames))

def walk_excl ( path , ** kwargs ) : for ( dirpath , dirnames , filenames ) in os . walk ( path , ** kwargs ) : dirnames [ : ] = [ dn for dn in dirnames if ( not is_excluded_filename ( dn ) ) ] ( yield ( dirpath , dirnames , filenames ) )
do os .