some changes to exception inheritance and message handling for compatibility with python2 usage
some changes to exception inheritance and message handling for compatibility with python2 usage

DOAJ/doaj,DOAJ/doaj,DOAJ/doaj,DOAJ/doaj