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