def preserve_plugin_listeners():
 if (not ImportAddedPlugin.listeners):
  ImportAddedPlugin.listeners = _listeners

def preserve_plugin_listeners ( ) : if ( not ImportAddedPlugin . listeners ) : ImportAddedPlugin . listeners = _listeners
preserve the initial plugin listeners as they would otherwise be deleted after the first setup / tear down cycle .