Compatibility with python 3 integers added