def initialize_permissions(course_key, user_who_created_course):
 seed_permissions_roles(course_key)
 CourseEnrollment.enroll(user_who_created_course, course_key)
 assign_default_role(course_key, user_who_created_course)

def initialize_permissions ( course_key , user_who_created_course ) : seed_permissions_roles ( course_key ) CourseEnrollment . enroll ( user_who_created_course , course_key ) assign_default_role ( course_key , user_who_created_course )
initializes a new course by enrolling the course creator as a student .