SWIG -> Python sample implementation