class HypotheticalBranch(object):

    def __init__(self, r, p, c):
        self.r = r
self.p = p
self.c = c

def __repr__(self):
    return 'HypotheticalBranch(%d,%d,%d)' % (self.r, self.p, self.c)
Python Combinatorics, part 2