Hi folks: My previous suggestion was wrong. I had a misconception about how the file method writelines works. The argument can actually be any iterable object producing strings, therefore it was not responsible of the failure of the original version of Sebastian's script. Regards, Carlo