Python equivalent to callable(val).
callable(val)
bool py_callable( py_Ref val, ) { return _py_callable( val, ); }