changed to ignore all *.egg-info
removed assert, EditorError exception. Preliminary attempt to specify a function as argument operating on the whole file