#NEWLINE# def write_record( self , writeable , request , response ) : #NEWLINE# #INDENT# record = dict ( request = request . __dict__ , response = response . __dict__ ) #NEWLINE# writeable . write ( json . dumps ( record ) ) #NEWLINE# writeable . write ( '\n' )