'Parses the course group settings. In example, the format is:
slug_for_compsci_courses_group_badge,course-v1:CompSci+Course+First,course-v1:CompsSci+Course+Second'

@property
def course_group_settings(self):

    specs = self.course_groups.strip()
    if (not specs):
        return {}
    specs = [line.split(',', 1) for line in specs.splitlines()]
    return {slug.strip().lower(): [CourseKey.from_string(key.strip()) for key in keys.strip().split(',')] for (slug, keys) in specs}
