def METHOD_NAME(path):
  """Iterate through files in path."""
  for root, _, filenames in os.walk(path):
    for filename in filenames:
      if filename.endswith('.pyc') or (os.sep + '.git') in root:
        continue
      yield os.path.join(root, filename)