'Publishes the student\'s current grade to the system as an event'

def publish_grade(self, only_if_higher=None):

    self.runtime.publish(self, 'grade', {'value': self.score.raw_earned, 'max_value': self.score.raw_possible, 'only_if_higher': only_if_higher})
    return {'grade': self.score.raw_earned, 'max_grade': self.score.raw_possible}
