'Returns the grading policy hash for the given course.'

@classmethod
def grading_policy_hash(cls, course):

    ordered_policy = json.dumps(course.grading_policy, separators=(',', ':'), sort_keys=True)
    return b64encode(sha1(ordered_policy).digest())
