fix ps.py bugs, catching AccessDenied exception