Fixed bug in results.py and added beta compute_pr.py