Python implementation of PSRPOP, designed to be run from the command line or from Python scripts/interpreter