update pet for python interface