minor changes xml2.py