Senate Counting in Python