 lateral undulation like some rat snakes will use that to climb trees but there are actually many snakes are quite adept at it and really have no issues I mean for all the potential disadvantages and not having limbs or claws or anything like that they do have long cylindrical bodies that they can move into different shapes and curvatures that can help them to get contact along the trees and then using those ventral scales it can help propel them forward.