Pretty-print an XML document using Python's minidom