def set_parent(self, parent): """Set the parent for outbound messages.""" self.parent_header = extract_header(parent)