def __repr__(self): s = ChainNode.__repr__(self) m_repr = '[%s]' % ', '.join([repr(m) for m in self]) return s.replace("(", "(%s, " % m_repr, 1)