Time Delay Function In Python Programming