TOOLS/matroska.py: stop cleanly at EOF of complete file when parsing