Use range instead of xrange