Bash Turn String Into Array Javascript Push Function In Python