rewrote updatepao in python