fix python 3 issue