from ipwhois import IPWhois
obj = IPWhois('74.125.225.229')
res = obj.lookup()
res['nets'][0]['country']
res['nets'][0]['abuse_emails']
from pprint import pprint
pprint(res)
How to get WhoIs info by IP in Python 3?