net/hex2ip: rewrite in python
net/ip2hex: rewrite in python