Interior Point Method Python Definition Function Family