gpa calculator in python