[python/cli] Add an interactive shell and a Python REPL mode