How To Create Tree Structure In Python