Python implementation of SPORE (based on Spyre)