Issue:
On Windows platforms, when writing files with python in text-mode, LF
characters get converted to CRLF.
This behavior leads to incorrect code generation in the steps following
parse_xml.py
Fix:
Replace file access mode by 'wb' to avoid any platform-dependent behavior
regarding newlines.