def entries_to_remove(entries, d):
    """
    Function to remove selected entries (key and respective values) from
    a given dict.
    Based on a reply from the user mattbornski [#]_ at stackoverflow.

    Parameters
    ----------
    entries : array
        Set of entried to be removed.
    d : dict
        Dictionary to apply the entried removal.

    References
    ----------
    ..  [#] mattbornski, 2012. http://stackoverflow.com/questions/8995611/removing-multiple-keys-from-a-dictionary-safely

    """
    for k in entries:
        d.pop(k, None)
