Work on output routine, making it output Python datastructures for easier merging
Basically just abort anytime we detect an error. Also add basics of a script for merging outputs.