Beautiful snake!
To get more depth of field, you need to add more light and open the F stop up probably to more like 5.6 or 8 to get the whole snake in focus. You can also add ISO and get take a longer exposure to make up for the lack of light, but there are always limits to that.