finish the update domain python script