Volume Delay Function Python Practice