you're right.   I do recall that awhile I ago I was helping someone port python to cython and switching from xrange to range seemed to produce a noticeable speed improvement.  It could have been something else though.