In normal_power the area under the sampling distribution (standard normal curve) right from the z-transformed critical value is being computed.
crit = stats.n