swig: created common swig file for modules