ed0.py: convert to classic ed index and range conventions
where index of first line is 1 and range i,j includes the second line j
also revise ed.py and test_ed to match