BUGFIX Python backend/graph rendering: Term leaves bug.