Switch from urllib to requests in ip.py