fixed integer issue in python 3.x