def process_message(message):
 message[u'type'] = message.pop(u'MsgType').lower()
 if (message[u'type'] == u'event'):
  message[u'type'] = (str(message.pop(u'Event')).lower() + u'_event')
  message_type = EventMetaClass.TYPES.get(message[u'type'], UnknownEvent)
 else:
  message_type = MessageMetaClass.TYPES.get(message[u'type'], UnknownMessage)
 return message_type(message)

def process_message ( message ) : message [ u'type' ] = message . pop ( u'MsgType' ) . lower ( ) if ( message [ u'type' ] == u'event' ) : message [ u'type' ] = ( str ( message . pop ( u'Event' ) ) . lower ( ) + u'_event' ) message_type = EventMetaClass . TYPES . get ( message [ u'type' ] , UnknownEvent ) else : message_type = MessageMetaClass . TYPES . get ( message [ u'type' ] , UnknownMessage ) return message_type ( message )
if a user passes print users in a message .