#1 has been really tricky. I think that the way that Flask runs servers spawns child processes, making Flask servers really slippery processes. So why not run everything in a Docker container and just spin that up every time? I realize that is impractical.