port to python3
plot expected points for P and W
fix coding from 0: differ, 1: match to 0: match, 0: differ.