src/plugin.c: Move the perl and python "global" magic to plugin_load().