that pyscript need some changes, a call is handled by dbus on the N900 and probably on the N9 too. Check how the dbus call works and check how to make a delay and you will easily make a script like that.