Optimizing Free Roaming Dog Control Programs Using Python