Loop Over Elements In Array Python Vs List