Split script up and added Yosemite patch for wx.