bs4.ProcessingInstruction.insert

ProcessingInstruction.insert(position, new_child)