Python Loop Through Array And Collection