When picking up your snake, be confident. Constantly putting your hand in and pulling it away could seem like a bird swooping down, which would cause a defensive response (as it sees your hand as a predator/ threat)
Also whenever you get time could you tell us your enclosure setup?
Ie, temp on warm and cold side, humidity, type of heat like heat pad or heat lamp, etc