Fixed test failure on python 3.x.