Adding Code Generation for wrapgen.py