1. Avoid the snake without making noise.

2. Try to climb the tree somehow (if it's not too high).

3. Shout for help loudly, hopefully someone is nearby!