Got it. But this is strange a bit. These sscripts update people and dont require save updates in the interface Supertool script to move surnames with "Patronymic" type to given names
But this script requires save changes in UI:
myobj = obj
new_name = Name()
new_name.set_first_name("Maria Antonivna")
new_name.set_surname_list([])
new_name.set_type(NameType.BIRTH)
myobj.set_primary_name(new_name)
db.commit_person(myobj, trans)
Where is differense?