file.write must be string python code example
Example: file.write must be string python
outFile = open('output.xml', 'wb')"b" for binary makes the difference.
outFile = open('output.xml', 'wb')"b" for binary makes the difference.