Thank you all for your answers! I must say I'm really impressed by the willing to help and the quick responses in this group (since it is my first post)!
I solved the problem using SQL-queries. I added a id, the same for each item in a chain (two or more similar posts) and just updated the database for each unique post. I had to do this anyway and I think it is the simplest and quickest way! thanks again! -- http://mail.python.org/mailman/listinfo/python-list