Java Docs Add To Array Python Memory