textwrap.dedent() does not accept byte strings in Python 3, and I thought dropping the indentation was the simplest fix. Perhaps I’ll add an encode("ascii") call to the end so as to allow the indentation to be restored.