Fix a bug found by pylint and remove wx.grid