There was just recently announced -- iplib-0.9: http://groups.google.com/group/comp.lang.python.announce/browse_frm/thread/e289a42714213fb1/ec53921d1545bf69#ec53921d1545bf69
It appears to be pure python and has facilities for dealing with netmasks. (v4 only). -- George -- http://mail.python.org/mailman/listinfo/python-list