added query_ip.py
updated to execute