While there are some "snake eating snakes" which can be beneficial, and a snake generally won't attempt to eat something it can't swallow (thus, many smaller species "snake eating snakes" can eat another snake of roughly their own length, mice, and rats, but won't take on even a 4-6 week old standard chicken), the best use for a python found on your property is as food for your chickens.
FWIW, I have a small rat snake - maybe 16", which I permit to sometimes take residence in my barn to help with mouse control - but he's being replaced by a cat. I've never lost even a 3 week old chick to him, but the chicks are behind 1/2" hardware cloth for their sdafety, and the snake can't fit his way thru. The rat snake, I hope, will move under my shed.
Around here old-timers say that black rat snakes keep the copperheads away.
We've seen a 3-footer and a 10" baby and I'm good with that. I'd rather lose an occasional chick or egg than have to cope with rats, mice, and copperheads.
I'm sure the chickens would be delighted to eat a python if I shot it for them.