... 
x, y, z = None, None, None 
x, y, z = HECobject.method( x, y, z)
```
**Script 3.** Code sample 3. Passing the arguments by reference to the method of the HEC-RAS object playing the role of a subroutine.

If the function is run, the first variable in the return list stores the original return value of the function. It is illustrated in Script 4. The variable RV used there is the return value of the function. This approach is used in all three presented examples.

```
import win32com.client 
HECobject = win32com.client.Dispatch("RAS503.HECRASController")