simplifying pcat_interface.py a bit