import threadingdef printit(): threading.Timer(5.0, printit).start() print "Hello, World!"printit()# continue with the rest of your pre

import threadingdef printit(): threading.Timer(5.0, printit).start() print "Hello, World!"printit()# continue with the rest of your pre