human
Complete the below
def main(output, effective_tld_filename):

    ''''effective_tld_filename is the effective TLD file to parse.
    A C++ array of { domain, exception, wild } entries representing the
    eTLD file is then printed to output.'
    '''

=====
Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def boolStr(b):
        if b:
            return 'true'
        return 'false'
    for etld in getEffectiveTLDs(effective_tld_filename):
        exception = boolStr(etld.exception())
        wild = boolStr(etld.wild())
        output.write(('ETLD_ENTRY("%s",    %s,    %s)\n' % (etld.domain(), exception, wild)))