def get_undo_commands(dire):
 with open(os.path.join(dire, 'COMMANDS')) as csvfile:
  return list(csv.reader(csvfile))

def get_undo_commands ( dire ) : with open ( os . path . join ( dire , 'COMMANDS' ) ) as csvfile : return list ( csv . reader ( csvfile ) )
get new files .