There are some functions that need to pass parameters by reference. In Python it is not possible to pass parameters by reference, but there are some extra functions that let us use this kind of parameters.
In the following code there is an example of how functions with reference parameters can be used in a Python script. The function calculates the cycle duration of a junction.