Made xmlToM3.py properly work with FLAG lists.