Add unit tests for edit_handlers.py. Lint edit_handlers.py.