baby balll pythons can be this way, they know they are small and vulnerable.. The snake will more than likley out grow this, some snakes are just cranky though... I have an older male than I dont trust at all.. I dont handle my snakes everyday because it can stress them out...

Also make sure the snake has had enough to eat... If they arent hungry then they are less likley to bite.