add support for new psutil api
Merge pull request #747 from ticosax/call-function

add support for new psutil api