Remove all handlers bound to given object instance.
        This is useful to remove all handler methods that are part of an instance.

        :param object obj: Remove handlers that are methods of this instance

def remove_handlers_bound_to_instance(self, obj):
        """
        Remove all handlers bound to given object instance.
        This is useful to remove all handler methods that are part of an instance.

        :param object obj: Remove handlers that are methods of this instance
        """
        for handler in self.handlers:
            if handler.im_self == obj:
                self -= handler