You should use a non- Python standard interface interface:
PyObject obj = interpreter.eval("True"); boolean i = obj.__nonzero__();
(it's called "non-zero" because it existed before Python was of a Boolean type, and Guido's ways are sometimes mysterious)
Richard Jones
source share