ps: add partial psutil 2.0 compatibility
Merge pull request #14032 from ihrwein/add-partial-psutil-2.0-compatibility-to-ps-module

ps: add partial psutil 2.0 compatibility