Updates to code_jam.py

More comment updates
autosolve-specific imports moved to insides the function
_smart_open is now smart_open
Comment updates to code_jam.hpp. Also made virtuals protected