In the regular python distribution, under tools, there is a program called pynche which does this better than any I have seen.
Should I put this someplace? If so, anybody got a someplace I could put it? I don't.
bye, /Horst