def deep_copy_dict(first: dict) -> dict:
    """ Perform a deep copy of all dictonaries on input and return result. """

    copy = first.copy()

    for key, value in copy.items():
        if isinstance(value, dict):
            copy[key] = deep_copy_dict(copy[key])

    return copy