<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def linkify_h_by_h(self):
 """Link hosts with their parents :return: None """

        for host in self:
            # The new member list
            new_parents = []
            for parent in getattr(host, 'parents', []):
                parent = parent.strip()
                o_parent = self.find_by_name(parent)
                if o_parent is not None:
                    new_parents.append(o_parent.uuid)
                else:
                    err = "the parent '%s' for the host '%s' is unknown!" % (parent,
                                                                             host.get_name())
                    self.add_error(err)
            # We find the id, we replace the names
            host.parents = new_parents