add CS_ERR_DIET error code to report information irrelevant in diet engine
python: raise CS_ERR_DIET error when accessing irrelevant data in diet engine
python: more check for diet engine in some APIs