Create Dynamic Array With Key And Value In Python