changed mem.py to use psutil