How To Delay Function In Python