pyToXml gives you a simple way of converting a python structure to XML