In the first line of the file you will see a list called "myfiles". For the streams there are only 5 or 6 files, so instead of iterating over a big list its much easier to just put them in there.
Put your files in that list.
You can see down below that I have built a constructor based on the name coming in to extract the "E1" etc. from the name of the original file and pass it to the output file which is very picky about having the word reformatted in it. You might be good to keep the naming convention in the "my files" list if you are confused by the conversion.