Update querying_tools.py