gnm swig python interface updated