fixed python 3 error