CFMMRouter.py Python Translation of CFMMRouter.jl utilizing scipy.optimize.minimize(method='L-BFGS-B').