There is also always searching the Python Cookbook (http://pythoncookbook.activestate.com/) for something like this. There is already an ICMP library there (written by me and a friend) that includes a ping function that uses the library.
-Brett -- http://mail.python.org/mailman/listinfo/python-list