removed output_dir as in argument to read_pickle_write_to_file()