A 24" x 24" would be fine.. I know of many people that keep them in tubs close to that size. I used to house mine in a 4ft viv but as of a few months ago when we had to down size a lot of stuff due to selling our house and moving I took a 4ft viv and split in in half with a wooden divider. I house 2 balls in it now, both have a 2ft box and are happy as ever.
Here is a link to Mykee's website and a paragraph about houseing..
Housing FAQs
There is a lot of debate regarding this topic, so I will do my best to answer this question objectively. There are two schools of thought on this topic, the first being; Give a ball python as much room as possible. Ball pythons ideally need living arrangements that allow them to fully stretch their bodies. A hatchling ball python that measures 16" in length should have an environment where one side is 16" long. The problem with this arises with large adult female balls that can get 5 feet or longer, that their enclosure would have to be 5 feet long. The second school maintains that the larger the environment, the more chance of the snake becoming stressed and stop eating. Since ball pythons are not arboreal (tree-dwelling) snakes, they spend most of their time underground or hidden for security, and would rather be secure in a smaller environment. Ball pythons under 500g can easily and comfortably be kept in a "Shoebox" Rubbermaid (16" X 8") and an adult kept in a "sweaterbox" Rubbermaid (23" X16") or an "underbed" Rubbermaid (34" X 17")