Try the PyNMS libraries: http://freshmeat.net/projects/pynms/ It has a ping module. If all you need is the ping module, maybe you could just look through that code and see if it's relatively simple to impliment yourself.