fix python 3 break