Refs #9370 Swap algorithm to use ScriptBuilder.
Refs #9370 Add header to generated python scripts.
Merge remote-tracking branch 'origin/master' into feature/9370_generate_python_script_nested_history
Refs #9370 Update usage examples to match.
Merge remote-tracking branch 'origin/feature/9370_generate_python_script_nested_history'