Cpp User Defined Exception In Python