Maybe if `self.name is None` we default to 
```python
return "<tree %s>" % (self.name if self.name is not None else hex(id(self)))
```

This way we can uniquely identify trees from the REPL again.