Use explicit int division for python 3
pep8
Merge pull request #1662 from lamblin/fix_py3

Fixes in downsample.py for python 3