def on_action_begin(self, action, logs={}):
        """ Called at beginning of each action for each callback in callbackList"""
        for callback in self.callbacks:
            if callable(getattr(callback, 'on_action_begin', None)):
                callback.on_action_begin(action, logs=logs)
def on_action_begin ( self , action , logs = { } ) : for callback in self . callbacks : if callable ( getattr ( callback , 'on_action_begin' , None ) ) : callback . on_action_begin ( action , logs = logs )
Called at beginning of each action for each callback in callbackList