python3 port of iplib