def dump(self, thing, file_name):
    with open(file_name, 'w') as file_pointer:
        json.dump(thing, file_pointer)
def dump(self, thing, file_name):
    with open(file_name, 'w') as file_pointer:
        json.dump(thing, file_pointer)