editor -> document, document processing now is in C++ extension module, not in Python.