Changes in QueryUtil.py and readArchive.py