Thomas Guettler wrote: > [...] > Nice, you could add it to the python cookbook. > [...] Just in the case the OP doesn't know where to find the cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/