import threading as test
import time

def hello():
    print "hello, world"

t = test.Timer(1.0, hello)
t.start() # after 30 seconds, "hello, world" will be printed