use
filename = os.path.join(path, files)