How To Delay A Function In Python