adding more file outputs to pcat_interface.py to try and find problems. Current release is broken, use last one if it needs to work