Sounds like you own a ball python lol
They can go over a year without eating, so I wouldn't lose sleep over this.
Just make sure that he has an 88-92 degree hot side, 78-82 degree cool side 40%-60% humidity, and at least 2 good hides. I would also suggest that you don't handle him until he starts eating consistently again.