fix broken python 2.x tests