g_common.py: Converts to plug-in module