A few style changes, autopep, and adding a get_patient_id function