
# start the services
clock = Runtime.start("clock","Clock")
log   = Runtime.start("log","Log")
audio = Runtime.start("audio","AudioFile")

# define a ticktock method
def ticktock(timedata):
    print timedata
    audio.playResource("/resource/Clock/tick.mp3")

#create a message routes
clock.addListener("pulse", python.name, "ticktock")
clock.addListener("pulse","log","log")

# start the clock
clock.startClock()

# start the services
python = Runtime.start("python","Python")
clock = Runtime.start("clock","Clock")
log   = Runtime.start("log","Log")
audio = Runtime.start("audio","AudioFile")

# define a ticktock method
def ticktock(timedata):
    print timedata
    audio.playResource("/resource/Clock/tick.mp3")

#create a message routes
clock.addListener("pulse", python.name, "ticktock")
clock.addListener("pulse","log","log")

# start the clock
clock.startClock()

Update Clock.py