Updating xmltools.py
Code cleanup.