course-migration.py script

@nasthagiri 
Optional: consider rewriting L85-87 in a `for` loop.