def METHOD_NAME(params, dir):
    for (dirpath, dirnames, filenames) in os.walk(dir):
        for filename in get_templates_from_list(filenames):
            template_apply(os.path.join(dirpath, filename), params)
        for dir in fnmatch.filter(dirnames, "[a-zA-Z0-9].*"):
            METHOD_NAME(params, dir)