Python (and Matlab) scripts for RECAT