After generating the Python file with definitions try to run it, so
we catch errors during the build process in stead of later during runtime.
diff --git a/Mac/Modules/ctl/ctlscan.py b/Mac/Modules/ctl/ctlscan.py
index aac2cc4..2525009 100644
--- a/Mac/Modules/ctl/ctlscan.py
+++ b/Mac/Modules/ctl/ctlscan.py
@@ -14,6 +14,8 @@
 	scanner = MyScanner(input, output, defsoutput)
 	scanner.scan()
 	scanner.close()
+	print "=== Testing definitions output code ==="
+	execfile(defsoutput, {}, {})
 	print "=== Done scanning and generating, now doing 'import ctlsupport' ==="
 	import ctlsupport
 	print "=== Done.  It's up to you to compile Ctlmodule.c ==="