python break all nested for loops