File.Write debe ser String Python

outFile = open('output.xml', 'wb')"b" for binary makes the difference.
Disgusted Duck