'Begin user interaction'

def interact(self):

    if self.completion:
        import readline, rlcompleter
        ns = globals().copy()
        ns.update(self.variables)
        readline.set_completer(rlcompleter.Completer(ns).complete)
        readline.parse_and_bind('tab:    complete')
    _monkeypatch_console()
    time.sleep(1)
    import code
    import sys
    sys.ps1 = 'POX>    '
    sys.ps2 = '    ...    '
    self.running = True
    code.interact('Ready.', local=self.variables)
    self.running = False
    core.quit()
