scripting: use PyErr_NormalizeException
make sure the Python objects for the exception are normalized; not doing
so seems working fine with Python 2.7, however with Python 3.8 it is
needed to be able to call traceback.format_exception() later with those
objects