Cohort extraction

Adding cohort.py for cohort extraction