He might also be preparing for a shed. Ball pythons hide away a lot when they're getting ready to shed.