Fixed int division
Fixed working on older versions of wxPython