Tree Program In Python