Sometimes they're just cranky. Not all snakes are going to like all people, after all. I had a cranky adult female that was pure hateful in her actions. She would strike at me all the time, no matter what and I did eventually just use a hook.
I've also had snakes that were sweet for me, then terrible with others. I've had animals sweet with the first owner and terrible to me. It happens.