The following repository contains implementations of the functions described in the article "Drawing Presentable Trees" published in Python Magazine.
Check it out at http://billmill.org/pymag-trees/
All code and text contained herein is free for anyone to use as they see fit. It is licensed under the WTFPL, which can be found in the LICENSE file.