Update PMF.py and predict.py