trx_toolkit/trx_sniff.py: fix compatibility with Python 3