Multiprocessing and Apache's mod_wsgi don't play nicely. Switch to
manually managing processes via subprocess.Popen etc instead. When
running arbitrary code, we write it to an external file, and running
functions directly is no longer supported.
The multiprocessing environment is really finicky.
I'm seeing deadlocks in the process at exit, that are probably related
to tracebacks being printed and still getting redirected to the
logfile or something.