def run(self, line): ishellCompleter = readline.get_completer() embed() readline.set_completer(ishellCompleter)