Create Array Using Dynamic Memory Allocation In Python