OrderedDict fallback (python < 2.7)