Yeah what is up with that? Just quit if there's no variable called "quit". Nobody will care that the REPL doesn't give the exact right behaviour for one case.
Hell, make `quit` a keyword if you have to.
Anyway, I really want to like Python but three things make me hate it:
1. The miserable state of type checking.
2. The miserable performance.
3. The miserable project management situation.
Deno/Typescript fixes all of those in my book so I use that where possible. It's better than Python in almost every way.