<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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