Invalid training_file, but passes Validation tests

Just a single linefeed, \n. Unless you edited with a windows text editor that puts extra ASCII characters into files, which you can then strip out by processing with a json library or conversion to python data structures before re-saving and sending.