swigメモ 
top

戻り値がC++のSTL stringの場合のためのtypemap

%typemap(python, out) string {
 $result = PyString_FromStringAndSize($1.data(), $1.size())
}

imported