Mimick Python's Range.