def __new__(cls, config, workflow): if is_dumb_terminal(): return GUI.create_instance('BasicConsoleGUI', config, workflow) return GUI.__new__(cls)