Efficient Frontiern Cal Line Using Python Code