Fixed failing test on python3.
Merge pull request #2080 from pelson/cmap_and_norm_levels_test_fix

Fixed failing test on python3.