def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def bufferedMode(self, mode = True):
        if mode is None:
            self.flush()
        self._bufferedMode = mode