Moving output formatting to separate function in sct_pdb_analysis.py.