Update xml_writer.py