how to solve lp problems using python