Everyone else has touched on the obvious: feeding response, too hungry, or too stressed.

What are your temps/habitat like? That can be a huge cause of aggression/defensiveness in ball pythons. If it's too hot/too cold they can also feel stressed because they can't properly regulate their body temperature. If I was hot/cold all the time, I know I would be pissed off.