Php Add Elements To Array Python Memory