Your fronius inverter address is defined at the inverter variable. This can be a DNS name or IP Address.
If running direct from command line
./fronius.py
you may need to change the shebang to match your own system. Tested on macOS with python 3 installed.
Preferably run with Python 3. Python 2.7 output is messy.