Python Append Key Value Pair To Array