We do already have some Python module: https://github.com/Dasharo/osfv-scripts/blob/main/osfv_cli/src/osfv/libs/rte.py
which already implements what we need in this script: https://github.com/3mdeb/RteCtrl/pull/22/files
We should review both of them, and propose if/how we can achieve code reuse, by implementing local flash.py script on RTE, using the same module, simply using localhost address as rte_ip.
This script may reside in osfv-scripts repo.