Fixed Python 2 division issue.