Python 3 fix - replaced all xrange() calls with range().
Authored by: bugman 2012-10-16
Parent: [r17849]
Child: [r17851]