This is pretty normal behavior for new snakes. New environment, new people, new smells. Everything new. They just get a bit nervous and go on the defensive. Let him settle in for a few days, and with a bit of handling he'll get used to you and more than likely calm down.