def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def bufferedMode(self, mode = True):
        if mode is None:
            self.flush()
        self._bufferedMode = mode