def _min_or_none(itr):
    """
    Return the lowest value in itr, or None if itr is empty.

    In python 3, this is just min(itr, default=None)
    """
    try:
        return min(itr)
    except ValueError:
        return None