py2.6 compatability; fallback to trying ordereddict.OrderedDict if collections.OrderedDict is not available