Change deprecated functions for psutil2.0