using OrderedDict instead of original dict of python