Python2 has been removed from cygwin, this means anyone running the dump_format_style.py in a cygwin shell could pick up python3 instead
In Python3 all strings are unicode as the file is opened in binary mode we need to encode the contents string or we'll face the following error
Traceback (most recent call last): File "./dump_format_style.py", line 228, in <module> output.write(contents) TypeError: a bytes-like object is required, not 'str'