fix python 3.x