Try to make pretty print tests compatible with Python 3.x

For some obscure reason I can't reproduce this* issue locally on
Python 3.4 although I think I understand what's happening, so
here's hoping that this commit improves things :-)

* https://travis-ci.org/xolox/python-deb-pkg-tools/jobs/25462162