make freedesktop's test suite pass under python 3