You NEED to take him to a Vet, if the Vet says "put polysporin on it." then do it, at least you took him to a Vet and got a professional medical opinion, not some reptile dealers. It probably will require more than just polysporin. I could tell you that some super glue or duct tape will do the job, this could fix things on the surface, but there still may be some underlying medical condition that needs care. Just take him to a Vet, if not give the snake to someone who will take proper care of it, both in captivity and when it gets ill.
The path is the goal.