Update course.py

Writes course info in additional table CourseCategories