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/menu/menuscan.py b/Mac/Modules/menu/menuscan.py
index 625e7ed..60c6915 100644
--- a/Mac/Modules/menu/menuscan.py
+++ b/Mac/Modules/menu/menuscan.py
@@ -13,6 +13,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 menusupport' ==="
 	import menusupport
 	print "=== Done.  It's up to you to compile Menumodule.c ==="