code: def locate(pattern, root=os.curdir):
      
      for path, dummy, files in os.walk(os.path.abspath(root)):
          for filename in fnmatch.filter(files, pattern):
              yield os.path.join(path, filename)
docs: Locate all files matching supplied filename pattern recursively.