Some fixes to the Pmw (python megawidgets) codebase