def prep_course_for_grading(course, request):
 course._field_data_cache = {}
 course.set_grading_policy(course.grading_policy)

def prep_course_for_grading ( course , request ) : course . _field_data_cache = { } course . set_grading_policy ( course . grading_policy )
set up course module for overrides to function properly .