Move subscript handling to the python front end.