I have a small C program whose sole job is optimization—specifically, performance tuning through parameter optimization. I now need the same logic rewritten as a clean, well-commented Python script. The scope is intentionally lean: • Replicate the existing algorithm exactly; no extra features. • Keep the execution flow readable and modular so I can tweak parameters later. • Include a brief README or inline comments explaining each core function and any Python libraries you use (standard libraries preferred). A simple test run proving the Python version returns identical results to the C original will be the final acceptance step. If you’re comfortable translating low-level optimization code into idiomatic Python, I’d love your help.