While we're at it, make it possible to run main.py in a somewhat standalone mode again so that we can test things without compiling.
main.py so things are a bit more obvious.