client.py does not directly depend on ipaddress anymore