`PowerNorm` is not defined. You'll need to use `mcolors.PowerNorm(1)` instead.