#NEWLINE# def write_file( self , filename , contents ) : #NEWLINE# #INDENT# with open ( os . path . join ( self . tmp_dir , filename ) , 'w' ) as wfile : #NEWLINE# #INDENT# wfile . write ( contents ) #NEWLINE# #UNINDENT# return filename