Hi,
I have run the code in your last post and it doesn't give any output or error messages in the end. But when I put a "print" statement after the 6th line, it did print the IDs.
It seems the part of the code after that line is missing something and I have been trying to figure it out.