d3a2a87
Do not open tty5 for writing in the "a" mode (#1014220) This results in seek errors in Python 3. Use "wb" instead with the same result in this case.