This may be so hopelessly late as to be useless, but it could be that you're using Python version 2.2 to 2.7 where the division operation on integers is different
This StackOverflow link explains it a bit more, https://stackoverflow.com/questions/183853/what-is-the-difference-between-and-when-used-for-division