Bash Split String Into Array Python Memory