Fixed compatibility issue with python 3