'Shows an ascii tree representation of the DAG'

def tree_view(self):

    def get_downstream(task, level=0):
        print((((u'    ' * level) * 4) + str(task)))
        level += 1
        for t in task.upstream_list:
            get_downstream(t, level)
    for t in self.roots:
        get_downstream(t)
