Python equivalent to pickle.dumps(val).
pickle.dumps(val)
bool py_pickle_dumps( py_Ref val, ) { return _py_pickle_dumps( val, ); }