ed.py: add d (delete) and get_range helper function
also add to ed_test.py