Your comments

Old Apple editors, like for example Alpha, had a great interface with a simple command through applescript (osascript). You could send an internal command to Alpha in Tcl, that was, as for ST Python is, the chosen embedded language.