Refs #9370 Add header to generated python scripts.
Merge branch 'feature/9370_generate_python_script_nested_history' into develop