Change xrange to range
Change xrange to range

Python 3 replaced `xrange()` with `range()`, dropping the previous version of `range()`. Because it is only be used for testing and the number of items included in the range is limited (50), there is no harm in using `range()` for Python 2.x.

dirn/When.py