Php Delete Item From Array Python Memory