Convert xrange to range

xrange is deprecated in python 3.3 and range provides the same functionality

Closes-Bug: #1255788

Change-Id: Ia27c1e7508f712573aadeb4f80ce39d14ce20407
Merge "Convert xrange to range"