bug fix in Query.py
Merge pull request #98 from rwhaling/master

bug fix in Query.py