testr: fix Python 3 compatibility

Change-Id: Id6d15638277433f202857d2541e727b2b534c99c
Signed-off-by: Julien Danjou <julien@danjou.info>