More Pythonic approach to ignored loop variable