def make_user_coach(user, master_course_key):
 coach_role_on_master_course = CourseCcxCoachRole(master_course_key)
 coach_role_on_master_course.add_users(user)

def make_user_coach ( user , master_course_key ) : coach_role_on_master_course = CourseCcxCoachRole ( master_course_key ) coach_role_on_master_course . add_users ( user )
makes an user coach on the master course .