Python Loop Through Array Of Integers