Python equivalent to bool(val). 1: true, 0: false, -1: error
bool(val)
int py_bool( py_Ref val, ) { return _py_bool( val, ); }