class MyOrderedDict(object):

    def __init__(self, odict):
        self._odict = odict

def __repr__(self):
    return self._odict.__repr__()

def __getitem__(self, item):
    return 42

def __setitem__(self, item, value):
    self._odict[item] = value

def keys(self):
    return list(self._odict.keys())
Использование OrderedDict в **kwargs