xrange doesn't exist in py3

We can just use range here, since we don't really care about performance :)