Python binding with swig