In this study, an analytical model for orthogonal metal cutting is presented for predicting cutting forces and temperature at tool-chip interface. In this approach, the properties of the materials are modeled by the Johnson-Cook constitutive material flow law, where the stress is a function of strain, strain rate, and temperature. The aim of the proposed work is to improve the numerical resolution of the analytical model. The determination of the optimal cutting parameters is based on the use of the Nonlinear Least-Squares Minimization and Curve-Fitting library for Python (LMFIT) whith a dual Levenberg-Marquardt optimization algorithm that has been developed and implemented in Python. The performance of the developed model has been studied by comparing its predictions with some experimental machining data for 1045 steels. A good correlation between the results of the proposed model and those resulting from literature and experiments has been demonstrated