Various tree structures for Python