Tree Data Visualization In Python Using And In If Statement