How big is he? If he's a baby, a 40 gallon is WAY too big. Even a 20 gallon would be too big for him.

Also, have you provided hides for him? A hiding ball python is a happy ball python.