def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def every_week(job, loop=None):
    return every(job, timedelta=timedelta(days=7), loop=loop)