Make rev range more Pythonic.