fix pylint W0120: Else clause on loop without a break statement

for-else is also a pretty obscure construct
Merge pull request #4877 from hulu/for-else-fix

fix pylint W0120: Else clause on loop without a break statement