Bugfix for when no QDC exists.
Fix for python3 compabilibity.
Fixing python3 compabilibity.