Set Python Variable Interpolation Formula Between Two