From-scratch replacement for now-defunt PythonPluginLoader. Still needs some work.