code: def list_files(path, extension=".cpp", exclude="S.cpp"):
      
      return ["%s/%s" % (path, f) for f in listdir(path) if f.endswith(extension) and (not f.endswith(exclude))]
docs: List paths to all files that ends with a given extension