BUG: Ensure loading scripted module rethrow exception and set __file__

Waiting the project "PythonCppAPI" is added as a CTK and Slicer dependency,
duplicate the CTK code [2] allowing to set __file__ attribute and
rethrow exception after calling "execfile()"


[1] https://github.com/grclirui/PythonCppAPI
[2] https://github.com/commontk/CTK/blob/5f35012272c62c1001d04cae19c59cd409f5f368/Libs/Scripting/Python/Core/ctkAbstractPythonManager.cpp#L257-274