[Python-checkins] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814)