python break out of double for loop