Fix type error on python3: 'float' object cannot be interpreted as an integer.
Merge pull request #2 from hugopl/master

Fix type error on python3: 'float' object cannot be interpreted as an in...