def writeSExpr(self, l): self.writeOut(sexpr.sexpr2str(l))
def stringReceived(self, string): expr = str2sexpr(string) for command in expr: result = self.app.run(command) if result: self.sendString(sexpr2str(result))
def sendToRedirect(self, l): self.client.send(sexpr.sexpr2str(l))