Optimization Principle for Variable Viscosity Fluid Flow and Its Application to Heavy Oil Flow Drag Reduction