As a matter of fact, these examples are not dealing with pyCGNS, but rather with the Numerical Python arrays. These arrays are the preferred way to exchange data between the Python interpreter and any other entity.
The scenario and code examples are a way of doing things. You can use other techniques, packages, design choices to do the same things. The Python interpreter is very powerful at allowing extension or embedded processing, make your own mind.