Python API for PRISM