updated python2-style calls to python3-style
fixed loading of core-module
updated python2-style calls to python3-style
updated python2-style exception to python3-style