update python part