more python 3 division issues

This one was particularly hard. Division issues again