rst: Replace xrange() by Python 3 compatible range().