Yup, that size should work (especially if he's a male). I keep my adults in cages that measure 33" x 17" x 5" (off the top of my head). Although, I've never kept a ball python in a tank on it's side, so I can't comment about how well that's going to work for the long term.
-adam