The idea behind embedding is you might have a Python shell in a larger app. But you can also use it to tightly control the execution of the interpreter.