... 
return_values = HECobject.method(arguments)
```
**Script 1.** Code sample 1. Initialization of HEC-RAS object and schematic use of its methods.

To adopt HECRASController methods in Python, a change in the calling is necessary. Imagine such an example: One of the subroutines determines the value of the parameter "called-by-reference". Let this argument be x. In the case of arguments "called-by-reference", the variable storing the output value must be created before the subroutine is run. In Python, the variable storing the None value must be created, which means the variable without a value assigned. Such a statement is equivalent to the variable declaration in VBA and other programming languages. Then the x variable is set as the argument of the subroutine and repeated as the variable in the return list, as shown in Script 2.

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