Python 3.1 compat

3.1’s range() objects do not support slicing.