Adapt to psutil 2.0.0 API.

API changed.
https://psutil.googlecode.com/hg/HISTORY

Tested on Linux with psutil 0.5.1, 1.2.1, 2.0.0
Not tested on Windows.