Hi The documentation for the python profiler in the python library reference is extremely readable (well done James Roskin!?).
Profile your code, and when you find where the speed problem occurs, try pitching just that section of code in comp.lang.python. You will likely get much feedback. Everyone loves small optimization exercises, and there be bots here who get the optimal solution on the first try. Though I would like to (seems an interesting application), I don't have time available to go through all your code now. Thanks Caleb -- http://mail.python.org/mailman/listinfo/python-list