def retcode(name,
            cmd,
            exec_driver=None,
            stdin=None,
            python_shell=True,