Useful cohort characterizing scripts to be used e.g. for APRs