print_csv of flattened json file