deleted myapprunner, Tobias has a neat trick:
ApplicationRunner.run(make = lambda _: session)
which does what I was doing with an entire new function.