Basic Python exception support

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