tried to fix python 3 compability