course-migration.py script

@nasthagiri 
It's kind of weird to reset the variable at the end of the method, for the following run.