code: def register(self, plugin):
          
          if plugin.name not in self._registered:
              logger.info('Registering plugin %s' % plugin.name)
              self._registered[plugin.name] = plugin
          else:
              logger.warn('Plugin %s already registered' % plugin.name)
docs: Register the given plugin. Registration order is kept.
          :param plugin: the plugin to register.