[opa/opwig-python] Started implementing templatized base functions for python type generation and updated wrapper generator to generate class-wrapping code inside a 'class namespace'