testlib: fix for python 3.3 [applied]