As long as you have ventilation, and are not risking a fire hazard... then it is a fine place to have them.

I would keep the doors open, or take them off, you want ventilation and a day-night cycle for the snakes.

Bruce