How To Loop Through An Array Python Definition