I agree with the above posts by the way. You shouldn't plan to try to treat a sick animal by self-diagnosing it. You can cause more harm than good and you'd probably feel worse if you attempt to treat your pet and it dies rather than taking it to a vet and getting it properly diagnosed, even if it still dies.
Baytril is the most common antibiotic prescribed for ball pythons. In terms of dosage, etc, I'm sure you can find an online resource for that. It's a simple formula for the animal's weight in grams. There are oral and intravenous versions, I think?
Again, I don't think this is a good practice and I would highly advise against it, but that's the info you requested.
An exotic animal vet will often do a fecal for maybe 30 bucks, so if you go that route you COULD THEORETICALLY safely treat the animal once you get the results from that.
Source: My sister is a vet. She's got baytril in her fridge for me because I requested it, but I wouldn't bring it home and try to tinker with it myself.