fix python 3 syntax bug