Python Loop Through Values Integration