This type of behavior is not the norm for a ball python. Much more information would be required to guess at what is causing it. It could be hungry, shedding, afraid or just generally unhappy. Let us know what you are feeding, how often you are feeding, how big the prey is, and the conditions it is being kept under. A picture or two would not hurt. Help us help you.