1 2 3
Programmatically open an editor, capture the result. WWW: https://github.com/fmoo/python-editor