Python Loop Through Dataframe By Tuple C