follow API changes of psutil-2.0.0.