Time Delay Function In Python With Parameters