def has_kobject(self):
    result = False
    bad_members = []
    for member in self.members:
        if member.has_kobject():
            result = True
        else:
            bad_members.append(member)
    for bad_member in bad_members:
        self.members.remove(bad_member)
    return result
def has_kobject(self):
    result = False
    bad_members = []
    for member in self.members:
        if member.has_kobject():
            result = True
        else:
            bad_members.append(member)
    for bad_member in bad_members:
        self.members.remove(bad_member)
    return result