def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def memoized(*args):
        try:
            return stored_results[args]
        except KeyError:
            result = stored_results[args] = fn(*args)
            return result