added function for checking for wxPython