python break out of for loop early