def __init__(self, initial_plugins=None):
self._plugins = []<EOL>if initial_plugins is None:<EOL><INDENT>initial_plugins = []<EOL><DEDENT>if not isinstance(initial_plugins, list):<EOL><INDENT>initial_plugins = [initial_plugins]<EOL><DEDENT>for plugin in initial_plugins:<EOL><INDENT>self.register(plugin)<EOL><DEDENT>
Initialize the plugins class with an optional list of plugins

:param BasePlugin or list initial_plugins: Single plugin or a List of plugins to initialize with