ksgen/yaml: store mappings as OrderedDict

Change-Id: I19f70f935d8b2b571f1998304785c12f1bb92d38
ksgen: fix pylint error - do not store lambda

Change-Id: I4f6a9044b74ef6c9967edb15136daca13f3e0357