RF: Use xrange when possible/appropriate.