Pythonic Way To Iterate Over List