Updated deprecated psutil calls.