One-line Tree in Python