How do I get Python's ElementTree to pretty print to an XML file?,f.write(xmlstr.encode('utf-8'))