Every line inside each of the text files of the folder matrices never never ends with a number but always with one and just one comma.
For anybody interested there is a part of the comment in program01.eng.py that states:
''''The file contains on each line groups
of 5 integer values, followed by 1 comma and/or 0 (or more) spaces or
So there will always be a final comma.