I took a look at the code you pasted and tried to quickly convert it into a script[1] that uses eventlet. It's been quite some time since I used eventlet like the way it's meant to be and I believe there might be another more efficient way of getting this done. But anyway, it reduces the lines of code needed drastically.
[1] http://dpaste.de/hd05/ -- Anomit Ghosh _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers