def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def create_class(length):
            class S(Structure):
                _fields_ = [('x' * length, c_int)]