Powershell Remove Empty Lines In Array Python Methods