Python Structure For Creating Xml Files