Thanks to visit codestin.com Credit goes to packages.gentoo.org
Programmatically open an editor, capture the result
https://github.com/fmoo/python-editor/