Bite it back!!!! Zap it with a cattle prod!!! flick its nose!!! Force it to move out!!! Make it get a job!!! Let it know you are not just simply there to be its food whenever it feels like snacking!!! Make a box of shame and put it in there for an hour or two!!! Send it to prison for one of those "scared straight" things!!! or even better, tease it with a hawk!!!

I recently bought my first Python. I have no doubt it will try and/or succeed at biting me in the future. I am completely joking with the upper paragraph BTW. It's a snake for pizza's sake! Its in their nature to bite things that make them feel threatened.