Thank you for your question.
In captivity, the Green Tree Python (Morelia viridis) can live
anywhere from 15 - 25 years if fed an appropriate diet, and lives
under ideal conditions. In captivity it has no predators.
In the wild, they can live about the same length of time: 15 - 20 years.
They do have predators - such as any predatory bird (birds of prey),
monitors (lizards), ophiophagus (snakes that eat other snakes).
Food chain: somewhere in the middle. They can take out frogs, small
mammals, bugs, insects, and birds.
I called the owner of Regal Reptile.com
425 Washington Street
Providence, Rhode Island 02903