Agree with giving the snake a few gentle strokes before picking up.
Something else if you're really nervous is to put one hand about a foot in front of the snake, so it can see but not reach to strike. Then while it's distracted, go in from behind with the other hand and pick it up.
And keep the handling sessions short.