CourseKey.from_string in instructor/enrollment.py