Benchmark - use range under py3
Merge pull request #2500 from dessant/patch-7

Benchmark - use range under py3