Works on Mac now.

Had to mess a bit with the size hints. It was an issue of python 2
division vs python 3 division.