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