Face rubbing is usually how they start to shed, but it could be stressed out too.
Is the snake acting frantic or just pushing hard on it's nose?