Using wxglade 0.6.3, the py_codegen has problems if the file has inner classes at the start of the file. e.g.
def barstuff(self, etc.)
def foostuff(self, etc.)
Causes codegen to fail to find the handler block location for class Foo, and to leave its "nonce" token(s) behind.