patch in python client