Thanks for your answer and your workaround! There's always something to learn about lambdas and variable scope in Python ;) I'm sorry I didn't delete the quoted Tutor Digest part, it was a stupid mistake :( cheers, Michael