CHAarrange.py arranges the output from parse into the right format