Fetches the IANA link relation registry

def emit_iana_rels(rels_url):
    '''Fetches the IANA link relation registry'''
    text = requests.get(rels_url).text.encode('ascii', 'ignore')
    xml = objectify.fromstring(text)
    iana_rels = {str(rec.value): str(rec.description)
                 for rec in xml.registry.record}
    keys = sorted(iana_rels)
    print('# IANA link relation registry last updated on:', xml.updated)
    print('# Obtained from', rels_url)
    print()
    print('iana_rels = {')
    for key in keys:
        print('    {0!r}: ('.format(key))
        desc_list = list(linewrap(iana_rels[key], width=68))
        for i, line in enumerate(desc_list):
            line_ = line.replace('"', '\\"')  # escape double quotes
            if i < len(desc_list) - 1:
                print('        "{0} "'.format(line_))
            else:
                print('        "{0}"'.format(line_))
        print('    ),')
    print('}')