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

Will this change persist after the test has run?