updating for python3

python3 doesn't automatically round integer division