Its actually a good sign of a happy healthy snake. They are ambush hunters, so when you see them like that they are sitting in a location where they feel safe just waiting for dinner to walk by.