for child in tuple(self.metadata): if 'calibre:' in child.get('name', ''): self.metadata.append(child)