from typing import Dict
from typing import List


def _compare_dict(old: Dict, new: Dict, keys: List[str]) -> bool:
    """Function for comparing a flat dictionary across specified keys

    :param Dict old: baseline dict
    :param Dict new: comparative dict
    :param List[str] keys: The keys to compare

    :return: Whether the dicts are equal for all keys
    :rtype: bool
    """

    try:
        for key in keys:
            if new[key] != old[key]:
                print(key)
                return False
    except:
        return False

    return True