def METHOD_NAME(self, name, callback, remove_when_released=False):
    self._callback_infos.append({
        'name': name,
        'callback': callback,
        'remove_when_released': remove_when_released,
    })