We just ran the dump_binary script from the master branch with python 3.9 on Windows.
There is a little bug in src/spi/binary.
You are using a DEFAUT_ENCODING var, but never define or import it.
We just defined it next to DEFAULT_LANG in the src/spi/ module and it works fine.