Most ball pythons, especially younger ones, are very shy and also don't care for their heads to be touched. Most of them will relax and uncoil once used to calm, relaxed handling. Don't force the snake out of it's coil or come at it from above it's head. Some of ours will allow a nice gentle under the chin type rubbing. We have one in fact that will hook her head over your hand to get that rub feeling LOL but she's an almost mature female.
Just establish regular routines with the snake, same thing, done over and over. They can get used to very simple routines and see them as nothing to be defensive about.