Everyone knows that Python3 freaks out when you try to put bytes that represent invalid encoding to a character file(-like object)
It turns out, when you redirect stdout with the subprocess module, it doesn't give a shit, and happily writes coloring escape sequences to a file opened with "w" 🤷
#python #python3