Just a note:
The easiest way to break out of the innermost loop of nested loops is to put them into a function and use return instead of break.
shadwickman commented: Well I learned something new about using list() :P +4
lllllIllIlllI commented: ahh! Beat me too it :P +4
jephthah commented: ouch :( +12
tux4life commented: Firefox FTW!! +12
ahihihi... commented: yeah +1
Ancient Dragon commented: So do I :) +36
The_Kernel commented: Yep, that about covers it :-) +1