Other snake species warrant the same explanations previously given. I have 5 colubrids and 1 bp, all of which are fed in their cages and do not associate my hand going into their enclosures as something to eat.
In your friend's case, the snake may have gained an association between the cage opening and being given food or some other anomaly and now gets defensive from something entering its enclosure.