>> The error message is: "TypeError: 'tuple' object is not callable". > > You created a variable named "tuple" somewhere, which is shadowing the > built-in type. Rename that variable to something else. Right, it was my bad. After removal the tuple() function works perfectly. Thanks, Laszlo