def has_these_keys(dict_, required=None):
    """Checks `dict_` for presence of all keys passed as strings in iterable
    `required`. Useful for binding with `partial`.
    """
    if not required:
        return True
    for reqd_key in required:
        if reqd_key in dict_:
            continue
        else:
            return False
    return True