def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def buffer_updated(self, nbytes):
        self.transport.write(self.buffer[:nbytes])