def Test(): num=1 while num<1000: print 'Hello there no ' + str(num) win32api.Sleep(50) num = num + 1