g_sorcery.py: Converts to plug-in module