Python code for analyzing exam grades and students' overall progress