Fixing issue with ps.top and ps.pgrep

Fixing issue with ps.top and ps.pgrep.  I checked all versions of psutil and couldn't find any reference to using a pid() function to return the PID from a process object. #16445 #16444