How long have you had the snake? If you have had it a while, has this behaviour developed recently? If this is the case, what has changed in the snake’s total environment or in your routine with it? You are looking for what has changed that has triggered this behaviour.
Is this is a recent acquisition? Was it like this for the person who got from? If not, what is different between what the previous owner was doing compared to what you are doing?
It sounds like the snake might be stressed. There are a number of things that can cause this. Some have already been addressed. If these are causative factors and you correct them, then behavioural change should be evident within a couple of weeks. Bear in mind that the problem might well be a combination of factors, all of which need to be addressed to achieve change.
A most common factor causing stress at that age is having too large an enclosure and/or the lack of a secure hide or perch. In their first year or so snakes are kept in click-clacks for a good reason. In the wild they are on the menu of most carnivores, including other snakes. So they spend their first year or so trying to avoid being eaten while attempting to get sufficient food to grow large enough to turn the tables on their would-be predators. A clear plastic click-clack that allows vision in all directions might be the problem. It makes them feel exposed and therefore vulnerable and this is what stresses them. A coat of black poster paint on each face of the container can fix that. To check first, place the container in a larger cardboard box which will block all outward vision but still allow adequate air flow. A couple of weeks in this will result in calmer behaviour if this is the root cause of the problem.
A couple of wooden chopsticks 1cm apart and just below the top, positioned towards the warmer end of the click-clack, will provide a secure perch. At least two hides should be provided, one at the cooler end and one at around their average preferred body temperature of about 29[SUP]o[/SUP]C. Hides should be tight and cosy as this enables them to conserve heat and humidity. For young snakes small pill boxes or jewellery boxes are the way to go. Certainly nothing bigger that a cigarette packet. What you might think is cramped is likely to be ideal for a small snake.
Many snakes do not like the feel of human hands on them and take a while to get use to it. To overcome this, using pillow slips as gloves will help. With time, one pillow slip can be removed and the snake given the opportunity to climb over bare human skin. Do not rush it but you should eventually reach the point where the pillowslips are no longer required (technique compliments of Longqi).
Blue