meet the needs from TreeVis TreefromSmile.py