How To Create Dynamic Array Class In Python