Fixes getting exception message py>3.0