Thanks Rick , Thats excellent I tried your code , changed it a little and it works really well. I didn't even know that PyTuple_Size() existed , handy little function that. Thanks again ! Keith.