added python version of tree labeler.  With faster performance and shorter code, python wins.