Oh dear, well, I used 2.6.5 for running the script - didn't know that that would make such a difference. With python 3.2 it works just fine - finally! Thank you for your help Campbell ! Rainer