file.write musi być Python String

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