change swig test to shapes swig python wrapper