Fixed code by changing wxPython widget IDs, other fixes