fixing small bug in pcat_interface.py