Refactor Course methods to use Session
Refactor for the sake of PEP8