Volume Delay Function Python Example For Loop