FWIW, I implemented an emulation of invokeLater for gateway scope in my later.py helper script, mentioned here:
and here:
Note that it uses officially unsupported methods to obtain the appropriate context.
The official method of obtaining delays in gateway scope (per IA support) is to use a sleep in an asynchronous thread. That's just ugly. Almost unforgivable. /: