I have an XML file that I'm reading and modifying using xml.etree.ElementTree in python 2.6 and 2.7. The ElementTree module is automatically changing anything with a value of "true" or "false" (lowercase) to a boolean, and then writing it to the modified file as "True" or "False".
How can I write these keys as str(True) and str(False) so they stay in lower case?