bs4.Doctype.insert

Doctype.insert(position, new_child)