It's only with the newer UnRen versions (because of changes in allowable characters in Python or whatever it was)
Nah. Python is not the problem. Really.
Its always the
batch/command or sometimes (rare) powershell part where the problems arise. And yes, as you said, in the newer unren they fucked the batch code somehow up and he is now more bitchy with the path chars.
Unren-old (downloaded from the first page of this thread)
Games:
Karlsson's Gambit and
Lisa Total Investigation
Copied the file in the first game folder (the one with the .exe), launched it and it gives that error
Ok, very good.

Its your choice of the
old unren which errors. You need to use the 9.4 (
decompiling will very possibly not work with new Ren'Py versions!).
Explanation:
I acquired per misuse of the pixeldrain DL links (allows to dl single files of the zip) the script_version.txt for the renpy versions of your games:
- Karlsson's Gambit is Ren'Py v7.6.1
- Lisa Total Investigation is v8.2.0
Old unren searches in .../lib/ for a python dir e.g. "windows-x86_64" which was correct for Ren'Py up to version
7.4.x. All
newer versions of Ren'Py, like the two games you use, have this path
prefixed with "py2-" or "py3-" so he cannot find Python. The search target is simply wrong.
Greets