<s> import json <EOL> import zmq <EOL> def runserver ( ) : <EOL> sock = zmq . Context ( ) . socket ( zmq . REP ) <EOL> sock . bind ( '<STR_LIT>' ) <EOL> while True : <EOL> func , arg = json . loads ( sock . recv ( ) ) <EOL> if func == '<STR_LIT>' : <EOL> exec arg in globals ( ) , globals ( ) <EOL> tosend = None <EOL> elif func == '<STR_LIT>' : <EOL> tosend = eval ( arg , globals ( ) , globals ( ) ) <EOL> sock . send ( json . dumps ( tosend ) ) </s>
