I see a problem there with the pythonic range() function. I suggest to create syntax that can express closed, partially closed and open intervals. And make it always requiring two arguments.
As it is now, people have to know the quirks of python to understand what this schema wants to say. The meaning should be clear on first look.