Read the script to understand what it is doing.
It just demonstrates how one could use python to do things.
The fedit part is actually very small.

run notsosimple.py as

  notsosimple.py

then have a look what was created.
Now run

  notsosimple.py -r -c

to do the calculations and collect the results.

Or just

  notsosimple.py  -c

to only collect results (if there are any yet).

If pyfplo path needs to be set use wrapp.sh. First edit pyfplopath
in wrapp.sh and then just put it in front as in any of the following.

wrapp.sh notsosimple.py
wrapp.sh notsosimple.py  -r -c
wrapp.sh notsosimple.py  -c
