20g long should have UTH with 25 watts tops. I would use even less than that. You want it to cover roughly 1/4 of the bottom of the enclosure off to one side. If you put it in the middle, you will struggle to get the correct temp, either too cold on hot side or too hot on cold side or both.
If this is for a baby ball python, you need to put a LOT of clutter. Several hides, fake plants, sterilized or fake wood, etc. A 20g is going to be a huge change from what it is used to, quite scary, so you need to make sure it has plenty of places to hide as well as ways to move around under some cover. 20g is not big enough for an adult, probably a great size for a yearling depending on growth.