Integer Division

Ah, thank you, that explains it. Python 2 can be forced to act like python 3 by an import statement:

from __future__ import division

So apparently this is what’s implicitely done to executed scripts. Only that it does not affect imported scripts makes things a little inconsistent…