Scriptable tree visualisation for Python