Well facundo, I knew that you were going for the return inside the loop. The exception is cool, but not for newcomers. My proposend code is simpler clearer and more compact, I keep watching your code, and don't know....
Funcs for breaking loops, exceptions for breaking loops. :o -- http://mail.python.org/mailman/listinfo/python-list