The command from
post 115 should do all the necessary operations to produce an unfolded, tab-separated file for pyglossary. You can use either the file you have now, or your original text file. Use the name of the source file you want to use instead of "destination.tsv" in the beginning of the command.