Seems to me that SWIG was not the best idea