This is the excelent tnetstring python package ported to Python3.
In order to avoid pitfalls in encode/decoding of strings the original support for encoding was removed. Now, only bytes are allowed as string.
To install using pip, just issue:
pip3 install tnetstring3
Latest release can be found on:
http://github.com/carlopires/tnetstring3