Optimizing Free Roaming Dog Control Programs Using Python In Visual Studio