Force integer devision for compatibility with Python3