Updated python-client driver to better handle client-side error handling