#NEWLINE# def on_message( self , body , message ) : #NEWLINE# #INDENT# event = body [ 'event' ] #NEWLINE# self . handlers [ event ] ( ** body ) #NEWLINE# self . debug ( 'agents after event recv: %s' , promise ( ( lambda : self . agents ) ) )