Relates to #962.
When running a Python script, the header key-value entry command_history will get bloated as every intermediate MRtrix3 command call concatenates to this list. The preferred behaviour would be that command_history for a script output image would only be one line longer than that of the input image, and that line would be the invocation of the script itself.