fix the import check of pyqt for qgis

Python wasn't understanding the import unless we gave it within a string