Tree Data Visualization In Python Using Global Variables