def disable_component(self, component):
if not isinstance(component, type):<EOL><INDENT>component = component.__class__<EOL><DEDENT>self.enabled[component] = False<EOL>self.components[component] = None<EOL>
Force a component to be disabled.

        :param component: can be a class or an instance.