Python xrange() iterates over the *entire* range to see if it contains a value