a smidge of error handling for pycs