Php Insert Into Array Python Memory