Correcting the `__file__` in python shell to use the raw path
This correct an issue with __file__
in the python shell
where a path with "\U" would be incorrectly taken as a Unicode
This also add a test for the run script feature
Backport: release