Well, all green tree pythons start life either yellow or red. They undergo what is called an "ontogenic change" as they mature into green adults. There are some that stay yellow but they are uncommon (and expensive). The evolutionary impetus for an ontogenic change in an animal can be that the babies and adults occupy slightly different microhabitats within the same environment.