Corrected sample code to pass the correct type for timeout (time.Duratio...

...n instead of int)