Base template for swig