Iterate Key Value Array Python Practice