I tried the example in windows10 / python3.7 and the repl exits after the first command unlike the example where you press ctrl+c to exit. Wondering if this is expected due to platform differences, and/or maybe its a quick fix using the advanced method.
C:\Users\.....> my-app.py repl
> hello
Hello!
C:\Users\.....>