<s> import toto <EOL> from toto . invocation import * <EOL> from tornado . ioloop import IOLoop <EOL> @ asynchronous <EOL> def invoke ( handler , params ) : <EOL> def receive_message ( message ) : <EOL> handler . respond ( result = { '<STR_LIT:message>' : message } ) <EOL> handler . register_event_handler ( '<STR_LIT:message>' , receive_message , deregister_on_finish = True ) </s>
