update OAuth2.0 for python client