Python - opening cli/gui editors (vim, nano, geany...)
<p>I'd like to open an editor (cli or gui-based) via Python script. I can do this with <code>os.system('vim file')</code>, but I'd also like to get output in case command fails. <code>subprocess.getstatusoutput('vim file')</code> doesn't work for opening programs with specific interface.</p>

<p>What's the best alternative?</p>
