The most reasonable conclusion from the observation that pythons have small leg bones buried in their tail muscles is:
Pythons descended from an animal with legs.
This suggests an evolutionary link to ancestors that had limbs, supporting the idea of vestigial structures in modern pythons.