move parse_edit into lib.py, but retain import for backwards compatability