create LP object Python