Generate new style exception initializer (Jack).
diff --git a/Tools/bgen/bgen/bgenModule.py b/Tools/bgen/bgen/bgenModule.py
index 2baa398..f55de97 100644
--- a/Tools/bgen/bgen/bgenModule.py
+++ b/Tools/bgen/bgen/bgenModule.py
@@ -75,7 +75,7 @@
 			Output()
 
 	def exceptionInitializer(self):
-		return """PyString_FromString("%s.Error")""" % self.name
+		return """PyErr_NewException("%s.Error", NULL, NULL)""" % self.name
 
 
 def _test():