repl_python function

Run a Python REPL