added query.py