Added ipquery.py, minor updates