def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def bufferedMode(self, mode = True):
        if mode is None:
            self.flush()
        self._bufferedMode = mode