python: turn off detail by default, and raise CS_ERR_DETAIL when detail is OFF