def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def close(self):
        time.sleep(0.1)
        self.sock.close()
        return 0