Python 3 fixes - the list() function is now used in combination with range() to generate the ordered list.
range() in Python 3 is an iterator object (just as xrange was), so now the list() function has to be called.
Authored by: bugman 2012-10-02
Parent: [r17645]
Child: [r17647]