Fixing TyperError with psutil library