'gets the value from the kwargs provided \'course\''

def from_course_property(self, **kwargs):

    course = kwargs.get('course', None)
    if (not course):
        raise ValueError("Context    dictionary    does    not    contain    expected    argument    'course'")
    return getattr(course, self.property_name, None)
