PY3 Use range() for tests

Muscle memory just spells xrange() all the time