Snakes are capable of attached emotions just like any pets like a dog or cat where they don't want to part from their "owner". Maybe the snake thought that man as it's owner or it's possession and wanted to stay close. We all know that animals like to mark their own territory and protect it. I think marrying the snake was a bit overdone on his part.