Update XMLwriter.py