def writefile(stringdata, path):
    try:
        fileobject = open(path, mode='w', buffering=1)
        print >> fileobject, stringdata.encode('UTF-8')
        fileobject.close()
        return path
    except (OSError, IOError):
        munkicommon.display_error("Couldn't write %s" % stringdata)
        return ""
Analize python value and add the serialized XML element using tag name
dataset/ETHPy150Open munki/munki/code/client/munkilib/adobeutils.py/writefile--crossover with--dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/contrib/pysimplesoap/simplexml.py/SimpleXMLElement.marshall