def writeMessages(self, messages):
    with open(os.path.join(self._directory, 'conversation.json'), 'w') as conv:
        conv.write(json.dumps(messages))
    command = ((('python -mjson.tool ' + os.path.join(self._directory, 'conversation.json')) + '  > ') + os.path.join(self._directory, 'conversation.pretty.json'))
    os.system(command)
def writeMessages(self, messages):
    with open(os.path.join(self._directory, 'conversation.json'), 'w') as conv:
        conv.write(json.dumps(messages))
    command = ((('python -mjson.tool ' + os.path.join(self._directory, 'conversation.json')) + '  > ') + os.path.join(self._directory, 'conversation.pretty.json'))
    os.system(command)