bztotj.py: migrate to python3