file.write должен быть String Python

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