fix tests with python =<2.6