adding python query tools