Merge pull request #2325 from matthew-brett/deal-with-broken-qt4

BF: guard against broken PyQt import