def log(self):
    if (not os.path.exists(self.results_directory)):
        os.makedirs(self.results_directory)
    with open('{}/results.json'.format(self.results_directory), 'w') as file_obj:
        json.dump(self.results, file_obj, indent=4)
def log(self):
    if (not os.path.exists(self.results_directory)):
        os.makedirs(self.results_directory)
    with open('{}/results.json'.format(self.results_directory), 'w') as file_obj:
        json.dump(self.results, file_obj, indent=4)