The proper way to do this is to use the facilities provided by the operating system. This means the solution is going to be different for different platforms. I've *not* done this before - but certainly for Windows I've seen discussions about this in this group previously.
The win32 extensions expose this capability for windows. I hope this helps your googling. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list