Switch from psutil.phymem_usage() to psutil.virtual_memory()