Please make the course object and use its attributes instead of relying on course_ids having a particular format (the current convention may change in the not too distant future).