the ONLY way to tell what is slow is to actually profile each of the operations, that said, start with examining object creation / memory allocation. string concationation usually does both . . .
-- http://mail.python.org/mailman/listinfo/python-list