fix the exception docs in python client api