changes for use of new swig version 1.3.29 (c++ python wrapper)