modified "no attribute 'inet_pton'" exception