how to generate xml documents with namespaces in python,print(doc.toprettyxml())