How To Create A Tree In Python