Create Nested Array Python Memory Allocation Failure