Interior Point Method Python Definition Function