As described
here I found out how to receive system messages ! (it's very likely those are from DBUS)
And I now know why your code is working. At least on my Kindle Touch the power goingToScreenSaver doesnt get fired when preventScreenSaver is set to 1. Probably this behaviour is different on the paperWhite. Could you verify this with "dbus-monitor --system" on your PW?