It might have to do with Python 3 removing the classic int type and moving all int operations to longs. If you compare Python2's Objects/intobject.c's i_divmod() function to Python3's ...
This is a brief description of some of the common stumbling points in Python for scientific programmers, named in deference to The R Iferno (which is much more expansive). The resulting values are ...