Fix Python 3.x incompatibility in trace test

Python 3.x requires explicit indication for bytes.