Import QRFS_* and QFT_* in query.py