avid.common.artefact.fileHelper.indent

avid.common.artefact.fileHelper.indent(elem, level=0)

copy and paste from http://effbot.org/zone/element-lib.htm#prettyprint it basically walks your tree and adds spaces and newlines so the tree is printed in a nice way