ksgen/tree: fix py2.6 ordereddict init issue

Change-Id: I7d0600dcd4cf887264fdf84455443ec51ff91a3b