fix python 3.x test fail