'Execute a Python statement.
Node names may be used, e.g.: px print h1.cmd(\'ls\')'

def do_px(self, line):

    try:
        exec line in globals(), self.getLocals()
    except Exception as e:
        output((str(e) + '\n'))
