i think you should call: self.discover_plugins() here.