Fix issue #953

Should fix #953, but qscintilla/pyqt5 won't build with brew so I've been unable to verify.