I think you should include ``from __future__ import division`` at the top of the file to ensure the results are predictable in Python 2 and 3