[ip] Fix ip-database downloading in Python 3.

urllib.urlretrieve is urllib.request.urlretrieve in Python 3.