Improved course import script