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.