from typing import OrderedDict


def dictify(od):
    """Recursively replace OrderedDict with dict"""
    if isinstance(od, OrderedDict):
        return dict((k, dictify(v)) for k, v in od.items())
    else:
        return od