Getting rid of global course_attributes variable. Replaced by an argument specifying the coure's URL.