Why do we need this? Couldn't we just call launch_app and wait in the Python code?