More integer division fixups
Merge pull request #2 from stevenschlansker/py3

More integer division fixups