def assert_keys_in_dict(allowable_keys, d):
    """
    Checks that all keys in d are in allowable keys
    Args:
        allowable_keys: Set or List of allowable keys
        d: Dict

    Returns: Boolean if satisfied, None if correct/key that is not in allowable keys
    """
    for k in d:
        if k not in allowable_keys:
            return False, k
    return True, None