def _AddActionStep(actions_dict, inputs, outputs, description, command):
 assert inputs
 action = {'inputs': inputs, 'outputs': outputs, 'description': description, 'command': command}
 chosen_input = inputs[0]
 if (chosen_input not in actions_dict):
  actions_dict[chosen_input] = []
 actions_dict[chosen_input].append(action)

def _AddActionStep ( actions_dict , inputs , outputs , description , command ) : assert inputs action = { 'inputs' : inputs , 'outputs' : outputs , 'description' : description , 'command' : command } chosen_input = inputs [ 0 ] if ( chosen_input not in actions_dict ) : actions_dict [ chosen_input ] = [ ] actions_dict [ chosen_input ] . append ( action )
merge action into an existing list of actions .