Setting ISP as a Custom Variable

I have installed the MaxMind ISP Database and the geolocation admin page shows ISPs can be determined from this.

How can I set the IP of a visit to be stored? I assume this can be saved in the database, probably as a custom variable, but can’t see how that could be done.

N.B. I am importing the logs with the Python script.