def write_temp_file(suffix, data):
    (fd, filename) = tempfile.mkstemp(suffix=suffix)
    print(('Writing "%s"...' % filename))
    with os.fdopen(fd, 'w') as fp:
        fp.write(data)
    print('Done! Please remember to remove the file.')
    return filename
def write_temp_file(suffix, data):
    (fd, filename) = tempfile.mkstemp(suffix=suffix)
    print(('Writing "%s"...' % filename))
    with os.fdopen(fd, 'w') as fp:
        fp.write(data)
    print('Done! Please remember to remove the file.')
    return filename