def openable(string, **kwargs):
 f = tempfile.NamedTemporaryFile(**kwargs)
 f.write(string)
 f.seek(0)
 _TEMPORARY_FILES.append(f)
 return f.name

def openable ( string , ** kwargs ) : f = tempfile . NamedTemporaryFile ( ** kwargs ) f . write ( string ) f . seek ( 0 ) _TEMPORARY_FILES . append ( f ) return f . name
returns the path to a temporary file that contains the given string .