def write_xspf(f, tuples):
    xml = XmlWriter(f, indentAmount='  ')
    xml.prolog()
    xml.start('playlist', { 'xmlns': 'http://xspf.org/ns/0/', 'version': '1' })
    xml.start('trackList')
    for tupe in tuples:
        xml.start('track')
        xml.elem('creator',tupe[0])
        xml.elem('title',tupe[1])
        xml.elem('location', tupe[2])
        xml.end()
    xml.end()
    xml.end()
    f.close()
send me a list of (artist,title,mp3_url)
dataset/ETHPy150Open echonest/pyechonest/examples/try_new_things.py/write_xspf