Perhaps just:

    for role in (CourseStaffRole, CourseInstructorRole):
        role(coures.location).add_users(global_admin, user)