fix qt_loader import hook signature

to match PEP 302

closes #5932
Merge pull request #5933 from minrk/qt_loader

fix qt_loader import hook signature