Ball Pythons are nocturnal so it would be uncommon for them to bask in the sun.
They keep warm with the ambient temps and residual ground heat.
You can try a radiant heat panel and belly heat for your enclosure.
I really don't like heat lamps because they destroy humidity much too easily.