Php Class Variable Array Python Memory