The cool way to do what you want is to use dtrace-enabled Python: http://joyeur.com/2007/08/29/using-dtrace-enabled-python-in-a-joyent- accelerators The problem is that it only works on Solaris. Regards, Zooko