For many reasons I no longer recommend any oil-based finish, although something like oil-based polyurethane does offer a nice amount of protection for the cost. If that really appeals to you then I can make some specific recommendations about how to apply it so it will be safer for your snake. But understand even then it can take over a year to offgass completely. Also, be prepared for the amber color it gives to wood over time. Most people do not like this look on lighter woods like pine or birch, for example.
Waterborne polyurethanes are much safer but most are not as moisture or abrasion resistant. Not a big deal unless you simply cannot tolerate having to break the cage down every year or so and reapply the finish.
If you use a plastic laminate on the floor and use a waterborne poly on the walls it would probably last a very long time for a ball python.
There are also catalyzed waterborne polyurethanes and these are absolutely amazing and safe products, but they are expensive and not something you can buy in small quantity since they are primarily a floor finish.
A similar option is the two-part bar top epoxies. These are solvent free and are even used to create faux substrates in marine aquaria housing delicate marine invertebrates. They are also readily available and can be purchased in small quantity. They do end up costing a lot because they have to be applied thicker than polyurethane or paint.
And on that note, I'll warn you not to compare various options on a cost per volume basis. Some products need to be applied very thick and end up costing a lot because of this. You can't just compare a quart of product A to a quart of product B and say the cheaper one will cost less overall.
Melamine still has it's place and usually ends up being the cheapest option simply because very little finishing work is required. No paint brushes, stains, or clear coats to buy.
However, it is very heavy and when it fails it tends to fail to the point that the cage is unusable.
But most importantly, the melamine you buy at Home Depot or other Home Improvement Centers is not very good. It is just a melamine foil that is adhered to a low quality particle board.
If you go to a cabinet speciality store you can buy much higher quality melamine and sometimes not pay that much more. It also comes in a variety of colors. I probably would not use it for rainforest type vivarium, but for a BP cage it will be fine. I can go into the various grades of melamine if you like.
And for one last option, there is a brand of plywood that comes prefinished with a UV cured epoxy finish. It is expensive but is of very high quality and actually ends up costing less compared to buying the same quality plywood and finishing it yourself.
I have not yet tried it in a reptile enclosure, but the stuff is well respected. You can clean the surface with acetone without any ill effect.