Reworked csvtojson.py to accommodate the current output of AMC and added more comments than I'm comfortable with.