I should just need to check os.environ['QT_API'] and modify the import line for the QT binding class as needed.
os.environ['QT_API']