More python3 fixes for #1. Dividing in python3 returns a float, not an int, which was resulting in blank output.
59217fb