def add_instructor(course_key, requesting_user, new_instructor):
 CourseInstructorRole(course_key).add_users(new_instructor)
 auth.add_users(requesting_user, CourseStaffRole(course_key), new_instructor)

def add_instructor ( course_key , requesting_user , new_instructor ) : CourseInstructorRole ( course_key ) . add_users ( new_instructor ) auth . add_users ( requesting_user , CourseStaffRole ( course_key ) , new_instructor )
adds given user as instructor and staff to the given course .