MNT: fixed the code PYXPCS.py and makemask.py to remove use of matplotlib.nxtuils