Stdobject To Array Python Memory Allocation Strategies