Use xrange rather than range