Python Loop Through Array With Index