A collection of python codes utilizing the line search, least squares optimization, and Nelder-Mead optimization algorithms