well, what you are doing there are infant steps of separating the resources of your machine many, many years ago
Scintilla is a powerful Text Editing control and if that runs in Python in a dedicated process satisfactorily that’s great luck
everything else must be offloaded to different processes and the results communicated to that main process for display etc
I think a fitting concept in this situation is a Process Pool Executor