SWIG imported; typerror needs fixing