An IP address class for Python