Fix integer division for python 3