Fixes in queries.py
Merge pull request #30 from nabinhait/3.0.0-hotfix

Fixes in queries.py