Add a pure-Python range() half implementation.