def is_exception(host):
    """
    Exceptions are domain names such as google.co.uk or hire.mil.gov, where the top level domain can be thought of co.uk or mil.gov rather than .uk or .gov. These domains need to be processed as a special case when converting the domain level from one level to another, since they are essentially of one level higher than they would ordinarily be thought of. That is, google.co.uk is a 3rd level domain, but for practicel purposes it should be considered a 2nd level domain.

    >>> is_exception('')
    False
    >>> is_exception('google.com')
    False
    >>> is_exception('google.co.uk')
    True
    >>> is_exception('hire.mil.gov')
    True
    >>> is_exception('indiana.edu')
    False
    >>> is_exception('indiana.edu.us')
    True
    >>> is_exception('whitehouse.gov')
    False
    """
    exceptions = [".com.", ".net.", ".org.", ".edu.", ".mil.", ".gov.", ".co."]
    for e in exceptions:
        if e in host:
            return True
    return False