def on_slave_report(client_id, data):
 stats['content-length'] += data['content-length']

def on_slave_report ( client_id , data ) : stats [ 'content-length' ] += data [ 'content-length' ]
this event is triggered on the master instance when a new stats report arrives from a slave .