def __threaded_execute(self, command):
        self.working = True
        self.process = subprocess.Popen(command, stdout=subprocess.PIPE,
                                        stderr=subprocess.PIPE)
        gobject.io_add_watch(self.process.stdout,
                             gobject.IO_IN | gobject.IO_HUP, self.read_output)
        gobject.io_add_watch(self.process.stderr,
                             gobject.IO_IN | gobject.IO_HUP, self.read_output)
        self.process.wait()
        self.stop_working()
Return x[0] if x is a single element tuple, else return x.
dataset/ETHPy150Open Morgawr/gogonlinux/gog_utils/gog_gui.py/ExternalOutputWindow.__threaded_execute--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/driver.py/_fix_tups