Replaced python 2.x xrange to python 3.x range
Merge pull request #673 from helmanofer/ofer_dev

Replaced python 2.x xrange to python 3.x range