def mutex(container, *options):
    """ Given options must be mutually exclusive. """
    found = None
    for option in options:
        if container.get(option) is None:
            continue
        if found is not None:
            raise ValueError('options %s and %s are mutually exclusive' % (
                found, option))
        else:
            found = option
