Added checks in __init__(), __del__(), PyObj::operator const char* and class destructors

Signed-off-by: Mikhail Durnev <Mikhail_Durnev@mentor.com>