See http://www.scintilla.org/ScintillaDoc.html#SCI_SEARCHINTARGET: The length
parameter is the length of the text you're searching for, not of the text you're searching in.
This will get you what you want:
pos = messenger(window.SCI_SEARCHINTARGET, len("world"), "world")