Update calculatePriors.py

Fixed nP