Python interface to PIMA