fixed python 3 syntax issue