labelfile.py : Report error if the file format is invalid