Powershell Sum Array Python Memory Allocation