Update python client to the 4.0 API