For me works on Python 3 ;)

let's use `six.moves.range` so we don't change existing functionality.