SWIG rearranging