def _section(section_name, section_data):
    """Add opening/closing section_name tags to data."""
    opening_tag = ['<' + section_name + '>']
    closing_tag = ['</' + section_name + '>']

    section = None
    if isinstance(section_data, list):
        section = opening_tag + section_data + closing_tag
    elif isinstance(section_data, str):
        section = opening_tag + (' ' + section_data).split('\n') + closing_tag
    elif isinstance(section_data, int) or isinstance(section_data, float):
        section = opening_tag + [' ' + str(section_data)] + closing_tag
    return section