title: Replacement for getstatusoutput in Python 3
body: <p>Since the commands module is deprecated since Python 2.6, I'm looking into the best way to replace <a href="http://docs.python.org/library/commands.html?highlight=commands#commands.getstatusoutput" rel="noreferrer">commands.getstatusoutput</a> which returns a tuple of the command's return code and output. The <a href="http://docs.python.org/library/subprocess.html#module-subprocess" rel="noreferrer">subprocess</a> module is rather obvious, however, it doesn't offer a direct replacement for getstatusoutput. A potential solution is discussed in a related question concerning <a href="https://stackoverflow.com/questions/10202078/python-getstatusoutput-replacement-not-returning-full-output">getstatusoutput</a> - however, I'm not looking into rewriting the original function (which has less then 10 LOC anyway) but would like to know if there is a more straightforward way.</p>