def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def setdefault(self, key, default=None):
        return self._collection.setdefault(key, self._from_python(key, default))