Usually after snakes shed they may still be a little stressed out because of the whole entire shedding process, and the shedding may tire them out.
Sometimes when a snake has a small space they will become aggressive because they need a larger space to roam around. Post up some pictures of his container and I'll tell you if the space is too small or just right.